<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@page import="java.util.*"%>
<%!@SuppressWarnings("unchecked")%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Verification</title>
</head>
<body>
	<%
		/*Enumeration<String> e = session.getAttributeNames();
		while (e.hasMoreElements()) {
			System.out.println(e.nextElement());
		}*/

		String spec = request.getParameter("specialization");
		session.setAttribute("specialization", spec);
	%>

	<%
		String firstName = (String) session.getAttribute("firstname");
		String middleInitial = (String) session
				.getAttribute("middleinitial");
		String lastName = (String) session.getAttribute("lastname");
		String citizenship = (String) session.getAttribute("citizenship");
		Boolean isUS = (Boolean) session.getAttribute("isUS");
		String residency;
		if (!isUS) {
			residency = (String) session.getAttribute("residency");
		} else {
			session.setAttribute("residency", "US Citizen");
			residency = "US Citizen";
		}
		String resCountry = (String) session.getAttribute("residence");
		String addr = (String) session.getAttribute("address");
		String city = (String) session.getAttribute("city");
		String state = (String) session.getAttribute("state");
		String countryCode = (String) session.getAttribute("countrycode");
		String zipCode = (String) session.getAttribute("zipcode");
		String areaCode = (String) session.getAttribute("areacode");
		String telNumber = (String) session.getAttribute("telnumber");

		List<Map<String, String>> degrees = (LinkedList<Map<String, String>>) session
				.getAttribute("degrees");
	%>

	<%
		out.println(firstName + " " + middleInitial + " " + lastName);
		out.println("<br>");
		out.println(citizenship);
		out.println("<br>");
		out.println(resCountry);
		out.println("<br>");
		if (isUS) {
			out.println(addr + " " + city + " " + state + " " + zipCode);
			out.println("<br>");
			out.println(areaCode + telNumber);
		} else {
			out.println(addr + " " + city + " " + zipCode);
			out.println("<br>");
			out.println(countryCode + " " + areaCode + " " + telNumber);
		}
		out.println("<br>");
		out.println(residency);
		out.println("<br>");
		out.println("<br>");
		for (Map<String, String> d : degrees) {
			for (String s : d.keySet()) {
				out.println(s + " : " + d.get(s));
				out.println("<br>");
			}
			out.println("<br>");
		}
		out.println("specialization:<br>");
		out.println(spec);
	%>
	<form method="POST" name="name" action="confirmation.jsp">
		<table border=0>
			<tr>
				<td><input type="submit" value="Submit"></td>
				<td><a href="cancelation.jsp"><input type="button" value="Cancel" name="cancel"/></a></td>
			</tr>
		</table>
	</form>
</body>
</html>